Skip to main content

cPanel's Cron Jobs Feature

Crons are used to set up time-based 'jobs' for your account. This will allow you to have simple commands or scripts run at a scheduled time. cPanel has a very easy-to-use feature within the control panel.

Access the Cron Jobs Application

After you have accessed your cPanel account, you will want to click the Cron Jobs icon under the Advanced section. You can also easily find this application using the Search function.

Click on Cron Jobs in the Advanced Section of
cPanel

Set-up an e-mail address for the cron

Here you can choose an e-mail address you would like to have updated whenever the cron runs. If you do not wish to receive an email you can set the following in redirect the cron's output in your script: mycommand >/dev/null 2>&1

If you Want to Change the Default Email Address Cron Job Results Go To
by Entering the New Email Address in the Email Field and Click Update
Email
 

Choose cron schedule and input script

Here you can choose common settings from the drop down, or choose the minute, hour, day, month, and weekday schedule individually. At the bottom you can input the command or script that you would like to have run. (e.g., *sh /user/public_html/testscript.sh  *or rm -rf /user/public_html/tmp/*)

Enter the Cron Job Settings on This Part of the
Screen

Edit or Remove Existing Cron Jobs

Once the cron is added, you can set your active crons at the bottom of the page, and you can then edit or delete them as needed.

Edit or Delete an Existing Cron Job by Clicking the Appropriate Link
in the Action Section of the Current Cron Jobs
Section

Any cron jobs listed under Current Cron Jobs will be automatically executed according to the timing set for that job.